package cn.guoxuepeng.hrm.client;

import cn.guoxuepeng.hrm.client.impl.SmsClientImpl;
import cn.guoxuepeng.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "sms-service",fallback = SmsClientImpl.class)
public interface SmsClient {
    @GetMapping("/sendRegCode")
    public AjaxResult sendRegCode(@RequestParam("phoneNum") String phoneNum, @RequestParam("code") String code);

}

